import type { IPageContentConfig } from '@/global/types'

const merchantTypeContentConfig: IPageContentConfig = {
  pageName: 'merchantType',
  layout: {
    border: false,
    size: 'default',
    stripe: true
  },
  batchBtns: [{ type: 'batchDelete', label: '批量删除' }],
  items: [
    { type: 'selection' },
    {
      prop: 'typeName',
      label: '类型名称',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createBy',
      label: '创建人',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'updateBy',
      label: '修改人',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createTime',
      label: '创建时间',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'operation',
      label: '行为',
      minWidth: '120',
      align: 'center',
      // fixed: 'right',
      btns: [
        { type: 'edit', label: '编辑' },
        { type: 'delete', label: '删除' }
      ]
    }
  ]
}

export default merchantTypeContentConfig
